function showPDF(url ,v_width ,v_height){
	return "<!--[if IE]> "+  
			"<object classid='clsid:CA8A9780-280D-11CF-A24D-444553540000' width='80%' height='90%' border='0'> "+   
			"<param name='_Version' value='65539'>  <param name='_ExtentX' value='20108'> "+  
			"<param name='_ExtentY' value='10866'>  <param name='_StockProps' value='0'> "+  
			"<param name='SRC' value='"+url+"'> "+  
			"</object> "+  
			"<![endif]--> "+
			"<!--[if !IE]> <!--> "+  
			"<object data='"+url+"' type='application/pdf' width='80%' height='780px'> "+  
			"alt : <a href='http://get.adobe.com/cn/reader'>Adobe Reader.pdf </a> "+  
			"</object> "+
			"<!-- <![endif]-->" ;
}

 function playVideo(url ,path,v_width ,v_height) {
	var swf_file = path+'/js/flvplayer.swf';		//flvplayer文件路径
	var swf_width = v_width;
	var swf_height = v_height;
	var swf_bgcolor = '#000000';		//背景颜色
	var swf_title = '';
	var flv_fileUrl = url;

	var so = new SWFObject(swf_file,'',swf_width,swf_height,'8',swf_bgcolor,false);
	so.addParam('allowFullScreen', 'true');
	so.addParam('menu', 'false');
	so.addParam('wmode', 'Opaque');
	so.addParam('quality', 'high');
	so.addVariable('vcastr_title', swf_title);
	so.addVariable('vcastr_file',flv_fileUrl);
	so.addVariable('BarColor','0xc7ac6f');		//播放控制栏颜色
	so.addVariable('BarPosition','0');		//控制栏位置参数
	so.addVariable('IsAutoPlay',true);				//影片自动播放参数
	so.addVariable('IsContinue','1');				//影片连续播放参数
	so.addVariable('BarTransparent','60');		//播放控制栏透明度
	so.addVariable('GlowColor','0xff7700');		//按键图标颜色
	so.addVariable('BufferTime','8');				//影片缓冲时间
	//so.addVariable('LogoText','sequoiabeijing.com');
	so.write('vidoe');
	
}



function showOgg(url,type,v_width ,v_height){
//	return "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='840' height='500'>"+
//	"<param name='movie' value='http://log.zhoz.com/zhoz_play.swf?vcastr_file="+url+"'>"+
//	"<param name='quality' value='high'>"+
//	"<param name='allowFullScreen' value='true' />"+
//	"<embed src='http://log.zhoz.com/zhoz_play.swf?vcastr_file="+url+"' quality='high' allowFullScreen='true' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='640' height='385'>"+
//	"</embed>"+
//	"</object>";
	var sourceDiv = "";
	if(type == 'ogg'){
		sourceDiv = " <source src='"+url+"' type='video/ogg'> ";
	}else if(type == 'ogv'){
		sourceDiv = " <source src='"+url+"' type='video/ogg'> ";
	}else if(type == 'mp4'){
		sourceDiv = " <source src='"+url+"' type='video/mp4'> ";
	}else if(type == 'webm'){
		sourceDiv = " <source src='"+url+"' type='video/webm'> ";
	}
	
	return "<video height='"+v_height+"' width='"+v_width+"' controls='controls' autoplay='autoplay' > "+
			sourceDiv+
//	 		" <source  type='video/webm'> " +
//			" <object data='"+url+"' height='385' width='640' > "+
//			" </object> "+
			" </video>";
}



function showSWF(swfUrl,v_width ,v_height){
	return "<object codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7' "+
					" classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'  "+
					" type='application/x-oleobject' width='"+v_width+"' height='"+v_height+"'> "+ 	
					" <param NAME='EnableContextMenu' VALUE='-1'> <!--是否启用上下文菜单--> "+ 
					"  <param name='src' value='"+swfUrl+"'>  "+
					"  <param name='quality' value='high' /> "+
					"  <param name='wmode' value='opaque' /> "+
					"  <param name='enabled' value='-1'> <!--播放器是否可人为控制-->  "+
					"  <param name='currentPosition' value='1'> <!--控件设置:当前位置--> "+
					" <param name='currentMarker' value='0'> <!--控件设置:当前标记--> "+
					" <param name='defaultFrame' value=''> <!--显示默认框架--> "+
					" <param name='invokeURLs' value='0'> <!--脚本命令设置:是否调用URL--> "+
					" <param name='baseURL' value=''> <!--脚本命令设置:被调用的URL--> "+
					" <param name='stretchToFit' value='0'> <!--是否按比例伸展--> "+
					" <param name='volume' value='50'> <!--默认声音大小0%-100%,50则为50%--> "+
					" <param name='mute' value='0'> <!--是否静音--> "+
					" <param name='uiMode' value='Full'> <!--播放器显示模式:Full显示全部;mini最简化;None不显示播放控制,只显示视频窗口;invisible全部不显示--> "+
					" <param name='windowlessVideo' value='0'> <!--如果是0可以允许全屏,否则只能在窗口中查看--> "+
					" <param name='fullScreen' value='0'> <!--开始播放是否自动全屏-->  "+
					" <param name='bgcolor' value='#000000'> "+
					" <param name='menu' value='false'> "+
					" <param name='wmode' value='opaque'> "+
					" <param name='FlashVars' value=''> "+
					" <param name='allowScriptAccess' value='sameDomain'> "+
					" <param name='play' value='false'> "+
					"      <embed src='"+swfUrl+"'  "+
					"           type='application/x-shockwave-flash'  "+
					"             pluginspage='http://www.adobe.com/go/getflashplayer' width='"+v_width+"' height='"+v_height+"'></embed>  "+
					" </object>";	
}